package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Permission;

import java.util.List;

public interface PermissionService {
    PageResult pageQuery(QueryPageBean queryPageBean);//分页查询

    void add(Permission permission);//添加权限

    void edit(Permission permission);//修改权限

    Permission findById(Integer id);//根据id查询

    void delete(Integer id);//根据id删除权限

    List<Permission> findAll();//查询所有

}
